1621a53dc5820ba1ca5bf5204628b51d341f0caa,ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java,ActionDBAccessorImpl,updateHostRoleStates,#Collection#,422

Before Change


      }
    }

    hostRoleCommandDAO.mergeAll(commandEntities);
    // Invalidate cache because of updates to ABORTED commands
    hostRoleCommandCache.invalidateAll(abortedCommandUpdates);

After Change


    }

    // no need to merge if there's nothing to merge
    if (!commandEntities.isEmpty()) {
      hostRoleCommandDAO.mergeAll(commandEntities);
    }

    // Invalidate cache because of updates to ABORTED commands